<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style>
        .fileinput-button {
            position: relative;
            display: inline-block;
            overflow: hidden;
        }

        .fileinput-button input{
            position:absolute;
            right: 0px;
            top: 0px;
            opacity: 0;
            -ms-filter: 'alpha(opacity=0)';
            font-size: 200px;
        }
</style>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${cms.id}"  type="hidden">
							<div class="form-bjnone">
	                            <div class="cl">
	                                <span class="btn btn-success fileinput-button">
							            <span>添加文件</span>
							            <input id="ProductImagefileUpload" type="file" name="file" data-url="/shop/product/uploadFile" multiple />
							        </span>
	                            </div>
	                            <div style="overflow-x: auto">
	                                <table class="table users table-bordered table-condensed dataTables-example dataTable">
	                                    <thead>
	                                        <tr class="text-c">
	                                            <th width="150">附件名称</th>
	                                            <th width="60">操作</th>
	                                        </tr>
	                                    </thead>
	                                    <tbody id="attachmentTbody">
	                                    	<tr th:each="m : ${listImage}">  
										        <td><input type='text' class='form-control' name='attachs_source' th:value='${m.source}' readonly='readonly'/></td>  
										        <td><a href='javascript:;' class='deleteProductImage' onclick='removeAttach(this);'>删除</a></td>  
										    </tr>
	                                    </tbody>
	                                </table>
	                            </div>
	                        </div>
	                        <div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer">
	</div>
	<script type="text/javascript" src="/js/appjs/shop/cms/image.js"/>
</body>
</html>
